package com.objectproject.main.dao.mybatis.mapper.primitive;

import com.objectproject.main.model.MyObject;
import com.objectproject.main.model.primitive.MyPrimitiveCollection;

public interface MyPrimitiveCollectionMapper {
	
	public abstract MyPrimitiveCollection getMyPrimitiveCollectionById(long primitiveId);
	//public abstract ArrayList<Long> getAllElementIdsOf(long primitiveId);
	public abstract long insertMyPrimitiveCollection(MyPrimitiveCollection myPrimitiveCollection);
	public abstract void insertMyPrimitiveCollectionRelation(MyPrimitiveCollection myPrimitiveCollection, long objectId);
	public abstract void deleteMyPrimitiveCollection(MyPrimitiveCollection myPrimitiveCollection);
	public abstract void deleteMyPrimitiveCollectionById(long primitiveId);
	
	public abstract void addElmentToPrimitiveCollection(MyPrimitiveCollection myPrimitiveCollection, MyObject element);
	public abstract void removeElementFromPrimitiveCollection(MyPrimitiveCollection myPrimitiveCollection, MyObject element); 
}
